package com.lovi.order.controller;

import com.lovi.order.service.OrderService;
import com.lovi.param.PageParam;
import com.lovi.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 管理调用订单展示接口
 */
@RestController
public class AdminOrderController {
    @Autowired
    private OrderService orderService;

    @PostMapping("/order/admin/list")
    R list(@RequestBody PageParam pageParam){
        return orderService.adminList(pageParam);
    }
}
